﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SimpleCSharpApp
{
    class Program
    {
        static int Main(string[] args)
        {
            ShowEnviromentDetail();

            GetUserData();

            Console.ReadLine();

            return 0;
        }

        private static void ShowEnviromentDetail()
        {
            foreach (String drive in Environment.GetLogicalDrives())
            {
                Console.WriteLine("Drive:{0}", drive);
            }
            Console.WriteLine("OSVersion:{0}", Environment.OSVersion);
            Console.WriteLine(".NET Version:{0}", Environment.Version);
        }

        private static void GetUserData()
        {
            string myName = "";
            string myAge = "";

            ConsoleColor prevColor = Console.ForegroundColor;
            Console.WriteLine("Enter Your Name:");
            Console.ForegroundColor = ConsoleColor.Yellow;
            myName = Console.ReadLine();
            Console.ForegroundColor = prevColor;
            Console.WriteLine("Enter Your Age");
            Console.ForegroundColor = ConsoleColor.Yellow;
            myAge = Console.ReadLine();

            Console.ForegroundColor = prevColor;
            Console.WriteLine("Name:{0};Age:{1}", myName, myAge);
        }
    }
}
